package com.hospital.register.user.client;

import com.hospital.register.vo.user.PatientQueryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 访问就诊人信息
 *
 * @author 刘逸晖
 */
@FeignClient(value = "service-user")
@Repository
public interface PatientFeignClient {

    /**
     * 根据就诊人id获取就诊人信息
     *
     * @param id     就诊人的 id
     * @param userId 所属用户的 id
     * @return 就诊人信息
     */
    @GetMapping("/api/user/patient/inner/get/{id}/{userId}")
    PatientQueryVo getPatientById(@PathVariable("id") Long id, @PathVariable("userId") Long userId);

}
